Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remove-bom-stream

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-bom-stream

Remove a UTF8 BOM at the start of the stream.

  • 1.2.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
476K
decreased by-58.78%
Maintainers
1
Weekly downloads
 
Created

What is remove-bom-stream?

The remove-bom-stream npm package is designed to remove Byte Order Marks (BOM) from streams. BOMs are special markers at the start of a text stream that indicate the encoding used. This package is particularly useful when dealing with text files that may have BOMs, which can cause issues in processing or parsing the text.

What are remove-bom-stream's main functionalities?

Remove BOM from a stream

This feature allows you to remove the BOM from a readable stream and pipe the cleaned data into a writable stream. In this example, the BOM is removed from 'input.txt' and the result is written to 'output.txt'.

const fs = require('fs');
const removeBomStream = require('remove-bom-stream');

fs.createReadStream('input.txt')
  .pipe(removeBomStream())
  .pipe(fs.createWriteStream('output.txt'));

Other packages similar to remove-bom-stream

Keywords

FAQs

Package last updated on 05 Jul 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc